unit frmLogin;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
  IdTCPClient, Buttons, untMsnConexao, Sockets;

type
  TForm1 = class(TForm)
    txtUsuario: TLabeledEdit;
    btnEntrar: TBitBtn;
    procedure btnEntrarClick(Sender: TObject);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.btnEntrarClick(Sender: TObject);
var
  con : TMsnConexao;
begin
  con := TMsnConexao.Create(Self);

  con.Iniciar(txtUsuario.Text);
end;

end.
